package tech.edwardvan.springsecuritydemo.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 前后端不分离
 *
 * @author EdwardVan
 */
@RestController
@RequestMapping("/web")
public class WebController {

    /**
     * 查看日志信息接口
     *
     * @return
     */
    @GetMapping("/log")
    public Object log() {
        return "log";
    }

    /**
     * 查看接口限流信息接口
     */
    @GetMapping("/limit")
    public Object limit() {
        return "limit";
    }

}
